<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>





<table class="t_css table01" style="width:100%" border="0" cellpadding="0" id="basicInfo3" cellspacing="1">
  <col style="width:15%"/>
	<col style="width:35%"/>
	<col style="width:15%"/>
	<col style="width:35%"/>

	<tr class="">
		<td   colspan="4" class="t_bar2"><span class="color_red">*</span>内部机构设置及职能分工（限5000字）</td>
	</tr>
<tr>
  <td colspan="4">
		<textarea rows="15" style="width:98%;"  class="input_textarea required  maxlength:5000"   name='proposal/goal/summary1'  label="内部机构设置及职能分工"><x:out select="$xmlData/data/proposal/goal/summary1"/></textarea>
	  <input type='hidden' name='proposal/goal/summary1_hidden' id='proposal/goal/summary1_hidden' value='<x:out select="$xmlData/data/proposal/goal/summary1_hidden"/>'>
  </td>
  </tr>
</table>





<table class="t_css table01" style="width:100%" border="0" cellpadding="0" cellspacing="1">
	<tr class="">
		<td   colspan="" class="t_bar2"><span class="color_red">*</span>园区管理人员情况表</td>
	</tr>
</table>
<table class="t_css table01" style="width:100%" border="0" cellpadding="0" id="tblMileStones1" cellspacing="1">
	   <thead>
				<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="13%">姓名</th> 
						<th class="TblHead" align="center"  width="8%">性别</th> 				
						<th class="TblHead" align="center"  width="8%">年龄</th>	
						<th class="TblHead" align="center"  width="13%">职务</th>
						<th class="TblHead" align="center"  width="18%">职称</th> 
						<th class="TblHead" align="center"  width="13%">学历</th> 				
						<th class="TblHead" align="center"  width="17%">专业领域</th>								
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center"><input type="radio" class="radiobutton" name="selMileStones1" ></td>
						<td align="center"><span name="milestones|milestone1[0]@seq_no" >[index]</span></td>
						<td align="center"><input name="milestones|milestone1[0]|name"     label="姓名" value="" class="required input_text"  maxlength="20" style="width:80%;" /></td>
						<td align="center">
			          <cpt:select id="sex[index]" key="sex"  name="sex" style="width:80%" onChange="initControlValue(this.id);"></cpt:select>
		            <input type="hidden" name="milestones|milestone1[0]|sex_value" class="required" label="性别" />
		            <input type="hidden" name="milestones|milestone1[0]|sex_name" value=""/>
			      </td>
			      <td align="center"><input name="milestones|milestone1[0]|age"      label="年龄" value="" class="required input_text " onfocus="InitInput.setNumber(this,3,0,0)"  style="width:80%;text-align:right;" /></td>
			      <td align="center"><input name="milestones|milestone1[0]|position" label="职务" value="" class="required input_text "  maxlength="20" style="width:80%;" /></td>

			      <td align="center">
				      <cpt:tree id="prof_title_[index]" key="prof_title" cacheable="false" readonly="true" label="职称"  className="hn_iuput_kuang required selectWidth3" value="" name="prof_title"  showPattern="all" shieldPattern="0" onClick="initTreeValue2" width="70%" />
			      	<input type="hidden" name="milestones|milestone1[0]|prof_title_value" value="" /> 
			      	<input type="hidden" name="milestones|milestone1[0]|prof_title_name" value="" />
		      	</td>
	
					<td align="center">
						       <cpt:select id="educate[index]" name="milestones|milestone1[0]|educate"  key="educate" onChange="initControlValue(this.id)"     style="width:80%" ></cpt:select>
				           <input type="hidden" name="milestones|milestone1[0]|educate_value" value="" class="required"  label="学历"/>
				           <input type="hidden" name="milestones|milestone1[0]|educate_name" value="" />
			      </td>
					  <td align="center"><input name="milestones|milestone1[0]|majority" label="专业领域" value="" class="required input_text "  maxlength="50" style="width:80%;" /></td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/milestones/milestone1" var="milestone1">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center"><input type="radio" class="radiobutton" name="selMileStones1" ></td>
						<td align="center"><span   name="milestones/milestone1[${flag}${index}]@seq_no" ><x:out select="$milestone1/@seq_no"/></span></td>
						<td align="center"><input value="<x:out select="$milestone1/name"/>" label="姓名" name="milestones/milestone1[${flag}${index}]/name" class="required" maxlength="20" style="width:80%;"  /></td>
            <td align="center">
			        <c:set var="sex"><x:out select="$milestone1/sex_value" /></c:set>
			        <cpt:select id="sex${flag}${index}"   name="sex"   key="sex" style="width: 80%;" value="${sex }" onChange="initControlValue(this.id);"  label="性别"></cpt:select>
		        	<input type="hidden" name="milestones/milestone1[${flag}${index}]/sex_value"  class="required" value="<x:out select="$milestone1/sex_value" />" label="性别"/>
			        <input type="hidden" name="milestones/milestone1[${flag}${index}]/sex_name" value="<x:out select="$milestone1/sex_name" />"  label="性别"/>
		        </td>
		        <td align="center"><input value="<x:out select="$milestone1/age"/>"      label="年龄" name="milestones/milestone1[${flag}${index}]/age"  onfocus="InitInput.setNumber(this,3,0,0)"    class="required"  style="width:80%;text-align:right;"/></td>
		        <td align="center"><input value="<x:out select="$milestone1/position"/>" label="职务" name="milestones/milestone1[${flag}${index}]/position" class="required"  style="width:80%;" maxlength="20" /></td>

	          <td align="center">
				      <c:set var="prof_title">{'id':'<x:out select="$milestone1/prof_title_value" />','name':'<x:out select="$milestone1/prof_title_name" />'}</c:set>
				      <cpt:tree id="prof_title_${index}" key="prof_title" cacheable="false" readonly="true" value="${prof_title}" className="hn_iuput_kuang required selectWidth3" name="prof_title"  showPattern="all" shieldPattern="0" onClick="initTreeValue2"   label="职称" width="70%" />	
				      <input type="hidden" name="milestones/milestone1[${flag}${index}]/prof_title_value" value="<x:out select="$milestone1/prof_title_value" />" class="required"  label="职称"/> 
				      <input type="hidden" name="milestones/milestone1[${flag}${index}]/prof_title_name" value="<x:out select="$milestone1/prof_title_name" />" /> 
		       	</td>

					  <td align="center">
			        <c:set var="educate"><x:out select="$milestone1/educate_value" /></c:set>
			        <cpt:select id="educate${flag}${index}"   name="educate"   key="educate" style="width: 80%;" value="${educate}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="milestones/milestone1[${flag}${index}]/educate_value"  class="required" value="<x:out select="$milestone1/educate_value" />" label="学历"/>
			        <input type="hidden" name="milestones/milestone1[${flag}${index}]/educate_name" value="<x:out select="$milestone1/educate_name" />"  label="学历"/>
		        </td>
		        
		        <td align="center"><input value="<x:out select="$milestone1/majority"/>" label="专业领域" name="milestones/milestone1[${flag}${index}]/majority" class="required" maxlength="50"   style="width:80%;"  /></td>
					</tr>
					
					
					
					
					
					
	
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblMileStones1");
					</script>
				</tbody>
			</table>

		<table width="91%" align="center">
		<tr >
		<td>
			<input class="button_02" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblMileStones1',99,'园区管理人员情况最多只能填写99条')){addNewRow('tblMileStones1');showDateTag('tblMileStones1');}try{top.resizeFrame();}catch(e){};">
			<input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblMileStones1','selMileStones1')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblMileStones1','selMileStones1')">
			<input class="button_02" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblMileStones1','园区管理人员情况')">
		</td>
		</tr>
    </table>

	
	
	
	
<div class="t_bar">
	<span class="color_red">*</span>园区孵化场地情况
</div>
<table  id="tblAttendOrg" cellpadding="1" class="table01 t_css" width="100%" border="0" cellpadding="0" style="word-break: break-all; word-wrap:break-word;">
	<thead >
		<tr style="border:1px solid #B7D1E6">
			<th class="TblHead" align="center"  width="5%" rowspan="2">选择</th>
			<th class="TblHead" align="center"  width="5%" rowspan="2">序号</th>
			<th class="TblHead" align="center"  width="10%"  rowspan="2">场地名称</th>
			<th class="TblHead" align="center"  width="15%"  rowspan="2">地址</th> 
			<th class="TblHead" align="center"  width="8%"  rowspan="2">投入使用<br/>时间</th> 
			<th class="TblHead" align="center"  width="7%"  rowspan="2">面积<br/>(平方米)</th> 
			<th class="TblHead" align="center"  width="25%"  colspan="4">其中(平方米)</th>
			<th class="TblHead" align="center"  width="25%"  colspan="4">产权情况(平方米)</th>
		</tr>
		<tr style="border:1px solid #B7D1E6">
		  <th class="TblHead" align="center"  width="6.25%">企业用</th>
		  <th class="TblHead" align="center"  width="6.25%">服务用</th>
		  <th class="TblHead" align="center"  width="6.25%">自用</th>
		  <th class="TblHead" align="center"  width="6.25%">其他</th>
		  <th class="TblHead" align="center"  width="6.25%">自有<br/>产权</th>
		  <th class="TblHead" align="center"  width="6.25%">委托<br/>管理</th>
		  <th class="TblHead" align="center"  width="6.25%">租赁</th>
		  <th class="TblHead" align="center"  width="6.25%">其他</th>
		</tr>
		
		
		
	</thead>
	<tbody id="tab">
		<tr style="display:none">
			<td align="center"><input type="radio" class="radiobutton" name="selAttendOrg" ></td>
			<td align="center"><span name="milestones|milestone2[0]@seq_no" >[index]</span></td>
			<td align="center"><span name="milestones|milestone2[0]|area_name" label="场地名称"    class="required" style="word-break: break-all; word-wrap:break-word;"></span></td>
			<td align="center"><span name="milestones|milestone2[0]|area_location" label="地址"   class="required" style="word-break: break-all; word-wrap:break-word;"></span></td>
			<td align="center"><span name="milestones|milestone2[0]|begin_date" label="投入使用时间"   class="required" style="word-break: break-all; word-wrap:break-word;"></span></td>
			<td align="center"><span name="milestones|milestone2[0]|area_square" id="area_square" label="面积"   class="required" style="word-break: break-all; word-wrap:break-word;"></span></td>
			
			<td align="center"><span name="milestones|milestone2[0]|contenta" id="contenta"  label="其中-->企业用"   class="required"    style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contentb" id="contentb" label="其中-->服务用"  class="required"      style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contentc" id="contentc" label="其中-->自用"  class="required"        style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contentd" id="contentd" label="其中-->其他"  class="required"        style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contente" id="contente" label="产权情况-->自有产权"  class="required" style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contentf" id="contentf" label="产权情况-->委托管理"  class="required" style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contentg" id="contentg" label="产权情况-->租赁"   class="required"    style="word-break: break-all; word-wrap:break-word;"></span>
			<td align="center"><span name="milestones|milestone2[0]|contenth" id="contenth" label="产权情况-->其他"  class="required"     style="word-break: break-all; word-wrap:break-word;"></span>
		</tr>
		
		
		
		
		<c:set value="0" var="index" scope="page"/>
		<x:forEach select="$xmlData/data/milestones/milestone2" var="milestone2">
	
		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
		<tr >
			<td align="center"><input type="radio" class="radiobutton" name="selAttendOrg" ></td>
			<td align="center"><span name="milestones/milestone2[${flag}${index}]@seq_no"   class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/@seq_no"/></span></td>
			<td align="center"><span label="场地名称" name="milestones/milestone2[${flag}${index}]/area_name"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/area_name"/></span></td>
			<td align="center"><span label="地址" name="milestones/milestone2[${flag}${index}]/area_location"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/area_location"/></span></td>
			<td align="center"><span label="投入使用时间"  name="milestones/milestone2[${flag}${index}]/begin_date"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/begin_date" /></span></td>
			<td align="center"><span label="面积" name="milestones/milestone2[${flag}${index}]/area_square"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/area_square"/></span></td>
			
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contenta"  id="contenta"  label="其中-->企业用"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contenta"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contentb"  id="contentb"  label="其中-->服务用"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contentb"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contentc"  id="contentc"  label="其中-->自用"     class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contentc"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contentd"  id="contentd"  label="其中-->其他"     class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contentd"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contente"  id="contente"  label="产权情况-->自有产权"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contente"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contentf"  id="contentf"  label="产权情况-->委托管理"  class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contentf"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contentg"  id="contentg"  label="产权情况-->租赁"         class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contentg"/></span></td>
		  <td align="center"><span name="milestones/milestone2[${flag}${index}]/contenth"  id="contenth"  label="产权情况-->其他"         class="required" style="word-break: break-all; word-wrap:break-word;"><x:out select="$milestone2/contenth"/></span></td>
		</tr>
		<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
	</tbody>


   <tr>
		<th class="TblHead" align="center"  width="10%" colspan="2">合计</th>
		<th class="TblHead" align="center"  width="10%">/</th>
		<th class="TblHead" align="center"  width="15%">/</th> 
		<th class="TblHead" align="center"  width="8%">/</th> 
		<th class="TblHead" align="center"  width="7%"     style="word-break: break-all; word-wrap:break-word;"><span id="area_square_total" name="milestones/area_square_total"></span></th> 
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contenta_total" name="milestones/contenta_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contentb_total" name="milestones/contentb_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contentc_total" name="milestones/contentc_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contentd_total" name="milestones/contentd_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contente_total" name="milestones/contente_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contentf_total" name="milestones/contentf_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contentg_total" name="milestones/contentg_total"></span></th>
		<th class="TblHead" align="center"  width="6.25%"  style="word-break: break-all; word-wrap:break-word;"><span id="contenth_total" name="milestones/contenth_total"></span></th>
		</tr>
</table>

	<table width="98%" align="center" >
	<tr >
					    <input class="button_02" type="button" name="cmdAddbefore" value="添加" onclick="if(checkTabLimit('tblAttendOrg',99,'园区孵化场地情况最多只能填写99条')){addNewRowdxkjy('tblAttendOrg','${ctx}/proposal/edit/dialog/orgInfoEdit_dxkjy_2016?parentTab=tblAttendOrg&type=add&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','园区孵化场地情况');}try{top.resizeFrame();}catch(e){};">
				&nbsp;<input class="button_02"   name="cmdMovePrev" type="button" value="上移" onclick="movePrevdxkjy('tblAttendOrg');">
				&nbsp;<input class="button_02"   name="cmdMoveNext"  type="button" value="下移" onclick="moveNextdxkjy('tblAttendOrg');">
				&nbsp;<input class="button_02"  id="cmdEdit" type="button" value="编辑" onclick="editRow('tblAttendOrg','${ctx}/proposal/edit/dialog/orgInfoEdit_dxkjy_2016?parentTab=tblAttendOrg&type=edit&needMeetingInfo=${param.needMeetingInfo}&TB_iframe=true&height=440&width=900','园区孵化场地情况');">
				&nbsp;<input class="button_02"  name="cmddel" type="button" value="删除" onclick="deleteSelectedRowdxkjy('tblAttendOrg','园区孵化场地情况');countFundTotal();"></td>
	</tr>
	</table>

	
	<script type="text/javascript">
	function addNewRowdxkjy(tableId,url,title)
	{
		if(url!=null&&url!=""){
			showThickBox(url,title);
			
		}//跳转页面
		else
			addNewRowDealdxkjy($("#"+tableId));
	}

	function initTreeValue2(treeId, treeNode) {
	  	//针对单位性质
	  	if (( treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的"+$("#" + treeId).attr("label"));
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_code'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_value'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_name'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_name']").val("");
				return false;
		}
			var str = treeNode.name;
			var obj = treeNode.parentNode;
			while (obj != null) {
				//str = obj.name + "-" + str;
				obj = obj.parentNode;
			}
			$("#" + treeId).parents("td").find("[name$='" +  treeId.substr(0,treeId.lastIndexOf("_")) + "_code'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_code']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" +  treeId.substr(0,treeId.lastIndexOf("_")) + "_value'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_value']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" +  treeId.substr(0,treeId.lastIndexOf("_")) + "_name'],[id$='" + treeId.substr(0,treeId.lastIndexOf("_")) + "_name']").val(str);
			$("#" + treeId).val(str);
			initTreeValue2CallBack();
		}
	
	
	
	
	
	
	/**
	 * 删除一行
	 * @param radioId 
	 */
	function deleteSelectedRowdxkjy(tableId,message,nummin,warnMsg,selName){
		if(!selName)selName="";
		var tr=$("#"+tableId+" :radio[name*='"+selName+"']:checked").parents("tr");
		if(nummin==null)
			nummin=0;
		var length=tr.length;
		if(tr.length==0)
			tr=$("#"+tableId+" tr").filter(":last");
		else if(tr.length>1)
			tr=tr.first();

		if(tr.get(0).rowIndex-1==nummin){
			scmWarn(irisNotes.delWarn1);
			return false;
		}
		if(length==0){
			
				scmWarn(irisNotes.delWarn2);
			
			return false;
		}
		  if(!confirm(messageTip.deleteTip+message+"？"))
			  return false;
		  tr.remove();
		  refreshRowINdexdxkjy(tableId);
		  return true;
	}

	/**
	 * 上移行
	 * @param tblId
	 * @returns {Boolean}
	 */
	function movePrevdxkjy(tblId,selName) {

		if (!selName)
			selName = "";
		if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
			scmWarn(irisNotes.prevWarn);
			return false;
		}
		if ($("#" + tblId + " tr").length <= 3)
			return false;
		var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
				.parents("tr").first();// 取得被选中的行
		var trPrev = trChecked.prev();// 取得上一行
		var index = trChecked.get(0).rowIndex;// 获得行号
		if (index <= 3) {// 如果是第一行
			scmWarn(irisNotes.tabelMoveWarn1);
			return false;
		}
		//trChecked.remove();
		trPrev.before(trChecked);
		trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
		refreshRowINdexdxkjy(tblId);
	}

	/**
	 * 下移行
	 * @param tblId
	 * @returns {Boolean}
	 */
	function moveNextdxkjy(tblId,selName) {
		if (!selName)
			selName = "";
		if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
			scmWarn(irisNotes.nextWarn);
			return false;
		}
		if ($("#" + tblId + " tr").length <= 3) {
			return false;
		}
		var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
				.parents("tr").first();// 取得被选中的行
		var trNext = trChecked.next();
		var index = trChecked.get(0).rowIndex;// 获得行号
		if (index == $("#" + tblId + " tr").length - 2) {// 如果是第一行
			scmWarn(irisNotes.tabelMoveWarn2);
			return false;
		}
		//trChecked.remove();
		trNext.after(trChecked);
		trChecked.find(":radio[name*='" + selName + "']").attr("checked", "true");
		refreshRowINdexdxkjy(tblId);
	}

	/**
	 * 重新计算行号
	 * @param tblId
	 */
	function refreshRowINdexdxkjy(tblId){
		 //重新计算行号

		
		  $("#"+tblId+" tr").each(function(){
			  
			   var seq=$(this).get(0).rowIndex;//获得行数
			   if(seq>2){//如果有行  显示时display行不计入类，故减2
				   
				   seq=seq-2;
				   var seq_no=$(this).find("[name$='seq_no']");
				   if(seq_no.is("span"))
					   seq_no.html(seq);
				   else
					   seq_no.val(seq);
				   
				   seq=""+(seq-1);
				   if(seq.length==1)
					   seq="0"+seq;
				  //替换相应的name参数的seq
				  $(this).find("input,span,textarea,select").each(function(){
					   var name=$(this).attr("name");
					   if(name!=null&&name!=""){
						   name=name.replace(/\[\d*\]/g,"["+seq+"]");
						   $(this).attr("name",name);
					   }
					   var id=$(this).attr("id");
					   if(id!=null&&id!=""){
						   id=id.replace(/\[\d*\]/g,"["+seq+"]");
						   $(this).attr("id",id);
						   id=id.replace(/\d+/g,""+seq+"");
						   $(this).attr("id",id);
					   }
					   var className=$(this).attr("class");
					   if(className!=null&&className!=""){
						   className=className.replace(/\[\d*\]/g,"["+seq+"]");
						   $(this).attr("class",className);
					   }
				   });
			   }
			 }
		  );

	}
	
	
	
	
	

	
/* 	$(document).ready(function(){
	  	$("#tblMileStones1").each(function(){
	  		$(this).find("tr:even").addClass("li_1");
	  		$(this).find("tr:odd").addClass("li_2");
	  	});
	  	
	  	$("#tblAttendOrg").each(function(){
	  		$(this).find("tr:even").addClass("li_1");
	  		$(this).find("tr:odd").addClass("li_2");
	  	});
	  	
	  	
	  }); */
	
	  
	  

 	 function countFundTotal(){
		  countTableSpan('tblAttendOrg','area_square_total','5');
		  countTableSpan('tblAttendOrg','contenta_total','6');
		  countTableSpan('tblAttendOrg','contentb_total','7');
		  countTableSpan('tblAttendOrg','contentc_total','8');
		  countTableSpan('tblAttendOrg','contentd_total','9');
		  countTableSpan('tblAttendOrg','contente_total','10');
		  countTableSpan('tblAttendOrg','contentf_total','11');
		  countTableSpan('tblAttendOrg','contentg_total','12');
		  countTableSpan('tblAttendOrg','contenth_total','13');
		  
		} 

		
		/**
		 * 计算动态列表合计（span）
		 * @param tblId  表id
		 * @param objid 
		 * @param col  需要合计的列
		 */
		 
		 
		 
		function countTableSpan(tblId,objid,col){
		/* 	 alert("111111111"); */ 
			   var count = 0;
			   $("#"+ tblId +" tr:gt(2)").each(function() {
				   var fund = $(this).children().eq(col).children().html();
				   
				   /* alert(fund); */
				   
				   if (!$.isNumeric(fund))
						fund = "0";
					count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000).toFixed(4);
		       });
			   count = formatNumberAuto(count.toString(), 9, 2, 2);// 格式化金额
			  
			   $("#" + objid).html(count);
		}
		
	
		
		
		$(document).ready(function(){
			countFundTotal();
			
		});
		
		
		
		
	
	</script>
	
	
	
	
	
	
	
	